package cn.test;

public class Book {
	private int  number;
	private String bookname;
	private double price;
	public int getNumber() {
		return number;
	}
	@Override
	public String toString() {
		
		return "编号为" + number + "的图书" + bookname + "价格是" + price ;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public String getBookname() {
		return bookname;
	}
	public void setBookname(String bookname) {
		this.bookname = bookname;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}

	Book(){};
	Book(int number,String bookname,double price){
		this.number=number;
		this.bookname=bookname;
		this.price=price;
	}
	 
}
